include ../src/Makefile.config

INCLUDE=. ../src/install/include  ../3rdParty/include ../3rdParty/unatpp/include
LIBPATH=../src/install/lib  ../3rdParty/lib  ../3rdParty/unatpp
LIB=UNAP #unatpp 

EXEC=main


sources:= $(wildcard *.cpp)
objects:=$(patsubst %.cpp,%.o,$(sources))

all: $(EXEC)

$(EXEC): %: %.o
	$(CXX) $(CXXFLAGS) $(LIBPATH:%=-L%) $< $(LIB:%=-l%) -o $@

%.o: %.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDE:%=-I%) -c $< -o $@


clean:
	rm -f all $(objects) $(EXEC)

.PHONY: clean all
